﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LstChuyenGold.ascx.cs" Inherits="Web.Cms.ChuyenGold.LstChuyenGold" %>
<%@ Register TagPrefix="uc1" TagName="PagingAjax" Src="~/Cms/AjaxCP/Paging.ascx" %>
<script type="text/javascript">
    $(function () {
        $("#<%=txtDateFrom.ClientID %>").datepicker({ showOn: 'button', buttonImage: '/images/calendar_1.gif', buttonImageOnly: true });
        $("#<%=txtDateTo.ClientID %>").datepicker({ showOn: 'button', buttonImage: '/images/calendar_1.gif', buttonImageOnly: true });
    });
</script>
<div id="uc_CMSContents">


<div style="clear:both;"><asp:Label Font-Bold="true" ForeColor="red" Font-Size="11px" ID="lblMessage" runat="server"></asp:Label></div>
<br />
<table align="center">
    <tr>

          <td class="style1">
            <strong>Mã thành viên nhận:</strong></td>

        <td class="style1">
            <asp:TextBox ID="txtCodememberTo" runat="server" Height="20px"></asp:TextBox>
        </td>
         <td class="style1">
            <strong>Mã thành viên chuyển:</strong></td>

        <td class="style1">
            <asp:TextBox ID="txtCodememberForm" runat="server" Height="20px"></asp:TextBox>
        </td>      
        <td class="style1">
            <strong>Từ ngày(yy/mm/dd):</strong></td>
        <td>
            <asp:TextBox ID="txtDateFrom" runat="server" Height="20px"></asp:TextBox>
        </td>
        <td class="style1">
            <strong>Đến ngày:</strong></td>
        <td>
            <asp:TextBox ID="txtDateTo" runat="server" Height="20px"></asp:TextBox>
        </td>

          <td class="style1">
            <strong>Chuyển Tiền Theo:</strong></td>
        <td>
            <asp:DropDownList ID="dropType" runat="server">
                  <asp:ListItem Value="1">Qua tài khoản ví Dealcom</asp:ListItem>
                  <asp:ListItem Value="2">Qua ATM</asp:ListItem>
            </asp:DropDownList>
        </td>

        <td>
            <asp:Button ID="btnTimKiem" runat="server" CssClass="Button_Search" onclick="btnTimKiem_Click" 
                />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    </table>
<br />
<asp:GridView ID="grdChuyenGold" runat="server" BackColor="White" AutoGenerateColumns="False"
 Width="100%" BorderColor="Gainsboro"
	BorderStyle="Solid" BorderWidth="1px" CellPadding="4" CssClass="Grid" 
    EnableModelValidation="True" onrowcommand="grdChuyenGold_RowCommand" 
        onrowdatabound="grdChuyenGold_RowDataBound"  >
	<AlternatingRowStyle CssClass="labe_content_02" />
	<RowStyle CssClass="labe_content_01" />
	<HeaderStyle CssClass="labe_Caption" Font-Bold="True" HorizontalAlign="Center" />
    <Columns>               
        <asp:BoundField HeaderText="STT">
        <ItemStyle HorizontalAlign="Center" Width="20px" />
        <HeaderStyle HorizontalAlign="Center" />
        <ItemStyle />
        </asp:BoundField>
            <asp:TemplateField HeaderText="Tên người nhận">
                 <ItemTemplate><%#Eval("FullName_To")%></ItemTemplate>
            </asp:TemplateField>
        <asp:TemplateField  HeaderText="Mã nhận"> 
              <ItemTemplate><%#Eval("CodeMember_To")%></ItemTemplate>         
        </asp:TemplateField>
        <asp:TemplateField  HeaderText="Mã chuyển">            
            <ItemTemplate><%#Eval("CodeMember_From")%></ItemTemplate>
        </asp:TemplateField>
        
         <asp:TemplateField HeaderText="Gold">
         <ItemTemplate><%#Eval("Gold")%></ItemTemplate>
         </asp:TemplateField>
         <asp:TemplateField HeaderText="Mô tả">
             <ItemTemplate>
                 <%#Eval("Description")%>
             </ItemTemplate>
         </asp:TemplateField>
         <asp:TemplateField HeaderText="Ngày chuyển">
         <ItemTemplate><%#Eval("CreateDate")%></ItemTemplate>
         </asp:TemplateField>
        <asp:TemplateField HeaderText="Xóa" HeaderStyle-Width="20">
            <ItemTemplate>             
                <asp:Button ID="btnDelete" runat="server" CssClass="Icon_Delete" CommandArgument='<%# Eval("Id") %>' CommandName="Commanddelete" OnClientClick="return confirm('Bạn có chắc chắn xóa không ?')" />                   
            </ItemTemplate>

<HeaderStyle Width="20px"></HeaderStyle>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<p style="text-align:center;">
    <br />            
    <asp:Label runat="server" ID="lbTotal" Font-Bold="true" Font-Size="15px" ForeColor="red"></asp:Label>   
     <asp:Label runat="server" ID="lblSearch" Font-Bold="true" Font-Size="15px" ForeColor="red"></asp:Label>            
    <br />  <br />
    <asp:Literal runat="server" ID="ltlPhanTrang"></asp:Literal>
    <br />
    <br />
</p>         
    <br />  <br />
                
            <uc1:PagingAjax ID="PagingAjax1" runat="server" /> 
    <p>
    <br />
    <br />
</p>

</div>